package com.woniu.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 核心企业-菜单
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_core_menu")
public class CoreMenus {

    @TableId
    private Integer menuId;//ID

    @TableField("menu_name")
    private String menuName;//菜单名
    @TableField("menu_icon")
    private String menuIcon;//图标
    @TableField("menu_link")
    private String menuLink;//路由
    @TableField("menu_parent_id")
    private Integer menuParentId;//父菜单ID
    @TableField(exist = false)
    private List<CoreMenus> childrenMenu;//子菜单
}
